package com.slg.android.manyanime.bean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by E540 on 2015/3/12.
 */
public class WatchUser {
    private String id;
    private String uid;
    private String headPic;
    private String nickName;
    /**
     * 用户名的md5值
     */
    private String hxUsername;
    private String superscript;
    /**
     * 男1 女0
     */
    private String sex;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getHeadPic() {
        return headPic;
    }

    public void setHeadPic(String headPic) {
        this.headPic = headPic;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getHxUsername() {
        return hxUsername;
    }

    public void setHxUsername(String hxUsername) {
        this.hxUsername = hxUsername;
    }

    public String getSuperscript() {
        return superscript;
    }

    public void setSuperscript(String superscript) {
        this.superscript = superscript;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void parseJson(JSONObject object) {

        try {
            id = object.getString("id");
            //uid = object.getString("uid");
            headPic = object.getString("head_pic");
            nickName = object.getString("nickname");
            sex = object.getString("sex");
        } catch (JSONException e) {
            e.printStackTrace();
        }


    }

    @Override
    public String toString() {
        return "WatchUser{" +
                "id='" + id + '\'' +
                ", uid='" + uid + '\'' +
                ", headPic='" + headPic + '\'' +
                ", nickName='" + nickName + '\'' +
                ", hxUsername='" + hxUsername + '\'' +
                ", superscript='" + superscript + '\'' +
                ", sex='" + sex + '\'' +
                '}';
    }
}
